<div id="tasksBlock">
    <div style="padding-bottom: 10px;"></div>
    <?php if (is_array($this->Info)) {
    ?>
    <?php
        echo $this->paginationControl($this->paginator, 'Sliding', "paginator_control_en.phtml", array(
            'onPage' => $this->onPage,
            'trans' => $this->trans,
            'countRow' => $this->countRow));
    ?>
        <div class="height12">&nbsp;</div>
        <table class="info-table">

        <?php echo $this->render('table_header.phtml') ?>

        <?php foreach ($this->Info as $item) {
 ?>
                <tr class="line1">
            <?php
                foreach ($this->tableColumn as $tb_column) {
                    $it = '';
            ?>
            <?php
                    if ($tb_column['title'] == 'active') {
                        $it = '<div style="text-align: center">'.GetSnippets::getYN($item['active']).'</div>';
                    } elseif ($tb_column['title'] == 'in_main') {
                        $it = '<div style="text-align: center">'.GetSnippets::getYN($item['in_main']).'</div>';
                    } elseif ($tb_column['title'] == 'title') {
                        $it = (string) $item[$tb_column['title']]. '<br /><b>ID:</b>'.$item['id'];
                    } elseif ($tb_column['title'] == 'top_menu') {
                        $it = '<div style="text-align: center">'.GetSnippets::getYN($item['top_menu']).'</div>';
                    } elseif ($tb_column['title'] == 'category_id') {
                        $it = (isset ($this->categories[$item['category_id']]) ? $this->categories[$item['category_id']]['title'] : '');
                    } elseif ($tb_column['title'] == 'Change') {
                        $it = '<div class="action_block" style="text-align: center">';
                        $it .= '<a  onclick="page.getPageInfo(' . $item['id'] . ')" class="p-left4" href="javascript: void(0)"><img src="/img/icon_edit.gif" alt="remove" title="remove" /></a>';
                        $it .= '<a class="p-left4" href="javascript: void(0)" onclick="globalModule.deleteRow(\'' . $item['id'] . '\')"><img src="/img/icon_del.gif" alt="remove" title="remove" /></a>';
                        $it .= '</div>';
                    } elseif (gettype($item[$tb_column['title']]) != 'object') {
                        if (is_numeric($item[$tb_column['title']]) && !isset ($tb_column['wrap'])) {
                            $it = '<div style="text-align: center">' . $item[$tb_column['title']] . '</div>';
                        } else {
                            $it = (string) $item[$tb_column['title']];
                        }
                    } else {
                        $it = date_format($item[$tb_column['title']], 'Y-m-d H:i');
                    }
            ?>
                    <td>
                        <?php if(isset ($tb_column['wrap']) && !empty ($it)){
                            switch ($tb_column['wrap']) {
                                case 'div150':
                                    $it = '<div style="width: 150px; max-height: 100px; overflow: auto;">' . $it . '</div>';
                                    break;
                                case 'div200':
                                    $it = '<div style="width: 200px; max-height: 100px; overflow: auto;">' . $it . '</div>';
                                    break;
                            }
                         }
                         echo $it;?>
                    </td>
<?php } ?>
            </tr>
<?php } ?>
            <tr class="bottom-line">
                <td colspan="<?php echo count($this->tableColumn) ?>"></td>
            </tr>
        </table>
    <?php
            echo $this->paginationControl($this->paginator, 'Sliding', "paginator_control_en.phtml", array(
                'onPage' => $this->onPage,
                'trans' => $this->trans,
                'countRow' => $this->countRow));
    ?>

    <?php
        } else {
    ?>
            <div><?php echo $this->trans->_('rows_no_found'); ?></div>
<?php }
    echo GetSnippets::addJsVar(); ?>
    </div>